
export interface Product {
  id: string
  title: string
  price: number
  number: number
  toggle?: boolean
}

export class Product {

  public id: string
  public title: string
  public price: number
  public number: number
  public toggle?: boolean

  constructor(opt: Product) {
    const { id, title, price, number } = opt

    this.id = id
    this.title = title
    this.price = price
    this.number = number
    this.toggle = true
  }

}

export default Product
